﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class DynamicLayerMgrWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(DynamicLayerMgr);
			Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
			
			
			
			
			
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 25, 4, 4);
			Utils.RegisterFunc(L, Utils.CLS_IDX, "InitLayers", _m_InitLayers_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "InitFogLayers", _m_InitFogLayers_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "InitWonderAreaLayers", _m_InitWonderAreaLayers_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "InitResPool", _m_InitResPool_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetLayerGridSize", _m_SetLayerGridSize_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "AddCameraLODGridRange", _m_AddCameraLODGridRange_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "AddInitLayerData", _m_AddInitLayerData_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "AddLODLayerContainer", _m_AddLODLayerContainer_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "RemoveLODLayerContainer", _m_RemoveLODLayerContainer_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "AddLuaLODLayer", _m_AddLuaLODLayer_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "AddLuaDiscreteObjectLODLayer", _m_AddLuaDiscreteObjectLODLayer_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New_LuaDiscreteObjectLODLayer", _m_New_LuaDiscreteObjectLODLayer_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New_WorldMapBaseCollisionLayer", _m_New_WorldMapBaseCollisionLayer_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "AddTreeLayerCollision", _m_AddTreeLayerCollision_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "RemoveTreeLayerCollision", _m_RemoveTreeLayerCollision_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateCityCollision", _m_CreateCityCollision_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateWorldMapBaseCollision", _m_CreateWorldMapBaseCollision_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetMapPointCheck", _m_SetMapPointCheck_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetAllianceChunck", _m_SetAllianceChunck_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "ShowMapPoint", _m_ShowMapPoint_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "ShowAllianceBuildPoint", _m_ShowAllianceBuildPoint_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "ShowTerrainCollider", _m_ShowTerrainCollider_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetCityLod", _m_SetCityLod_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "CheckClickInOverSea", _m_CheckClickInOverSea_xlua_st_);
            
			
            
			Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "worldEntry", _g_get_worldEntry);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "worldMapFog", _g_get_worldMapFog);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "wonderArea", _g_get_wonderArea);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "inCityLod", _g_get_inCityLod);
            
			Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "worldEntry", _s_set_worldEntry);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "worldMapFog", _s_set_worldMapFog);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "wonderArea", _s_set_wonderArea);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "inCityLod", _s_set_inCityLod);
            
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            return LuaAPI.luaL_error(L, "DynamicLayerMgr does not have a constructor!");
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            return LuaAPI.luaL_error(L, "DynamicLayerMgr does not have a constructor!");
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_InitLayers_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    WorldEntry _value = (WorldEntry)translator.GetObject(L, 1, typeof(WorldEntry));
                    
                    DynamicLayerMgr.InitLayers( _value );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_InitFogLayers_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    WorldMapFog _value = (WorldMapFog)translator.GetObject(L, 1, typeof(WorldMapFog));
                    
                    DynamicLayerMgr.InitFogLayers( _value );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_InitWonderAreaLayers_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    MapWonderArea _value = (MapWonderArea)translator.GetObject(L, 1, typeof(MapWonderArea));
                    
                    DynamicLayerMgr.InitWonderAreaLayers( _value );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_InitResPool_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    XLua.LuaTable _value = (XLua.LuaTable)translator.GetObject(L, 1, typeof(XLua.LuaTable));
                    
                    DynamicLayerMgr.InitResPool( _value );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetLayerGridSize_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    int _width = LuaAPI.xlua_tointeger(L, 1);
                    int _height = LuaAPI.xlua_tointeger(L, 2);
                    
                    DynamicLayerMgr.SetLayerGridSize( _width, _height );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddCameraLODGridRange_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    int _lodLevel = LuaAPI.xlua_tointeger(L, 1);
                    int _gridRow = LuaAPI.xlua_tointeger(L, 2);
                    int _gridCol = LuaAPI.xlua_tointeger(L, 3);
                    
                    DynamicLayerMgr.AddCameraLODGridRange( _lodLevel, _gridRow, _gridCol );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddInitLayerData_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    DynamicLayerMgr.AddInitLayerData(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddLODLayerContainer_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    XLua.LuaTable _table = (XLua.LuaTable)translator.GetObject(L, 1, typeof(XLua.LuaTable));
                    
                        var gen_ret = DynamicLayerMgr.AddLODLayerContainer( _table );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RemoveLODLayerContainer_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    WorldMapBase.LuaLODLayerContainer _container = (WorldMapBase.LuaLODLayerContainer)translator.GetObject(L, 1, typeof(WorldMapBase.LuaLODLayerContainer));
                    
                    DynamicLayerMgr.RemoveLODLayerContainer( _container );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddLuaLODLayer_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    XLua.LuaTable _table = (XLua.LuaTable)translator.GetObject(L, 1, typeof(XLua.LuaTable));
                    
                        var gen_ret = DynamicLayerMgr.AddLuaLODLayer( _table );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddLuaDiscreteObjectLODLayer_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    XLua.LuaTable _table = (XLua.LuaTable)translator.GetObject(L, 1, typeof(XLua.LuaTable));
                    
                        var gen_ret = DynamicLayerMgr.AddLuaDiscreteObjectLODLayer( _table );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_New_LuaDiscreteObjectLODLayer_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    XLua.LuaTable _table = (XLua.LuaTable)translator.GetObject(L, 1, typeof(XLua.LuaTable));
                    
                        var gen_ret = DynamicLayerMgr.New_LuaDiscreteObjectLODLayer( _table );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_New_WorldMapBaseCollisionLayer_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    
                        var gen_ret = DynamicLayerMgr.New_WorldMapBaseCollisionLayer(  );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddTreeLayerCollision_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    float _x = (float)LuaAPI.lua_tonumber(L, 1);
                    float _y = (float)LuaAPI.lua_tonumber(L, 2);
                    float _r = (float)LuaAPI.lua_tonumber(L, 3);
                    
                    DynamicLayerMgr.AddTreeLayerCollision( _x, _y, _r );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RemoveTreeLayerCollision_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    float _x = (float)LuaAPI.lua_tonumber(L, 1);
                    float _y = (float)LuaAPI.lua_tonumber(L, 2);
                    float _r = (float)LuaAPI.lua_tonumber(L, 3);
                    
                    DynamicLayerMgr.RemoveTreeLayerCollision( _x, _y, _r );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CreateCityCollision_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    int _gridSize = LuaAPI.xlua_tointeger(L, 1);
                    
                        var gen_ret = DynamicLayerMgr.CreateCityCollision( _gridSize );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CreateWorldMapBaseCollision_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    
                        var gen_ret = DynamicLayerMgr.CreateWorldMapBaseCollision(  );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetMapPointCheck_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    bool _enabled = LuaAPI.lua_toboolean(L, 1);
                    
                    DynamicLayerMgr.SetMapPointCheck( _enabled );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetAllianceChunck_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    int _tileIndex = LuaAPI.xlua_tointeger(L, 1);
                    bool _value = LuaAPI.lua_toboolean(L, 2);
                    
                    DynamicLayerMgr.SetAllianceChunck( _tileIndex, _value );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ShowMapPoint_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    bool _enabled = LuaAPI.lua_toboolean(L, 1);
                    
                    DynamicLayerMgr.ShowMapPoint( _enabled );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ShowAllianceBuildPoint_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    bool _enabled = LuaAPI.lua_toboolean(L, 1);
                    
                    DynamicLayerMgr.ShowAllianceBuildPoint( _enabled );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ShowTerrainCollider_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Vector3 _pos;translator.Get(L, 1, out _pos);
                    float _r = (float)LuaAPI.lua_tonumber(L, 2);
                    int _layerMask = LuaAPI.xlua_tointeger(L, 3);
                    
                        var gen_ret = DynamicLayerMgr.ShowTerrainCollider( _pos, _r, _layerMask );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetCityLod_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    bool _inCity = LuaAPI.lua_toboolean(L, 1);
                    UnityEngine.Vector2 _viewCenter;translator.Get(L, 2, out _viewCenter);
                    
                    DynamicLayerMgr.SetCityLod( _inCity, _viewCenter );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CheckClickInOverSea_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    float _x = (float)LuaAPI.lua_tonumber(L, 1);
                    float _y = (float)LuaAPI.lua_tonumber(L, 2);
                    
                        var gen_ret = DynamicLayerMgr.CheckClickInOverSea( _x, _y );
                        LuaAPI.lua_pushstring(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_worldEntry(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, DynamicLayerMgr.worldEntry);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_worldMapFog(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, DynamicLayerMgr.worldMapFog);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_wonderArea(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, DynamicLayerMgr.wonderArea);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_inCityLod(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.lua_pushboolean(L, DynamicLayerMgr.inCityLod);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_worldEntry(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    DynamicLayerMgr.worldEntry = (WorldEntry)translator.GetObject(L, 1, typeof(WorldEntry));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_worldMapFog(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    DynamicLayerMgr.worldMapFog = (WorldMapFog)translator.GetObject(L, 1, typeof(WorldMapFog));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_wonderArea(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    DynamicLayerMgr.wonderArea = (MapWonderArea)translator.GetObject(L, 1, typeof(MapWonderArea));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_inCityLod(RealStatePtr L)
        {
		    try {
                
			    DynamicLayerMgr.inCityLod = LuaAPI.lua_toboolean(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
